package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 *
 * @author wangt
 * @since 2024-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_address_school_different_street")
@Schema(name = "EduAddressSchoolDifferentStreet", title = "", description = "实体类")
public class EduAddressSchoolDifferentStreet extends Model<EduAddressSchoolDifferentStreet> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "differentStreetId", description = "主键")
    @TableId(value = "different_street_id", type = IdType.INPUT)
    private Long differentStreetId;

    @Schema(name = "addressId", description = "地址id")
    @TableField(value = "address_id")
    private String addressId;

    @Schema(name = "addressName", description = "地址名称")
    @TableField(value = "address_name")
    private String addressName;

    @Schema(name = "schoolName", description = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolType", description = "学校类别")
    @TableField(value = "school_type")
    private String schoolType;

    @Schema(name = "street", description = "所属街道")
    @TableField(value = "street")
    private String street;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.differentStreetId;
    }
}
